using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN ThuTrongTuanServiceBase****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:07/10/2010 39:07:23</para>
	/// <para>Class Name: ThuTrongTuanServiceBase</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class ThuTrongTuanService : IThuTrongTuanService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: ThuTrongTuan_ID</para>
		/// <para>Output: ThuTrongTuanEntity</para>
		///</summary>
		public ThuTrongTuanEntity SelectOne(int ThuTrongTuan_ID){
			ThuTrongTuanDAO dao = new ThuTrongTuanDAO();
			return dao.SelectOne(ThuTrongTuan_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SelectOneByMaThu</para>
		/// <para>Input: MaThu</para>
		/// <para>Output: ThuTrongTuanEntity</para>
		///</summary>
		public ThuTrongTuanEntity SelectOneByMaThu(string MaThu){
			ThuTrongTuanDAO dao = new ThuTrongTuanDAO();
			return dao.SelectOneByMaThu(MaThu);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of ThuTrongTuanEntity</para>
		///</summary>
		public List<ThuTrongTuanEntity> SelectAll(){
			ThuTrongTuanDAO dao = new ThuTrongTuanDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			ThuTrongTuanDAO dao = new ThuTrongTuanDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of ThuTrongTuanEntity</para>
		///</summary>
		public List<ThuTrongTuanEntity> SelectAllFilter(string strFilter){
			ThuTrongTuanDAO dao = new ThuTrongTuanDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			ThuTrongTuanDAO dao = new ThuTrongTuanDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: Save</para>
		/// <para>Input: ThuTrongTuanEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(ThuTrongTuanEntity o){
			ThuTrongTuanDAO dao = new ThuTrongTuanDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: Save</para>
		/// <para>Input: ThuTrongTuanEntity</para>
		/// <para>Output: ThuTrongTuanEntity</para>
		///</summary>
		public ThuTrongTuanEntity SaveRet(ThuTrongTuanEntity o){
			ThuTrongTuanDAO dao = new ThuTrongTuanDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of ThuTrongTuanEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<ThuTrongTuanEntity> list){
			ThuTrongTuanDAO dao = new ThuTrongTuanDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of ThuTrongTuanEntity</para>
		/// <para>Output: List of ThuTrongTuanEntity</para>
		///</summary>
		public List<ThuTrongTuanEntity> SaveListRet(List<ThuTrongTuanEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: Update</para>
		/// <para>Input: ThuTrongTuanEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(ThuTrongTuanEntity o){
			ThuTrongTuanDAO dao = new ThuTrongTuanDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of ThuTrongTuanEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<ThuTrongTuanEntity> list){
			ThuTrongTuanDAO dao = new ThuTrongTuanDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: UpdateMaThu</para>
		/// <para>Input: NewMaThu,ThuTrongTuan_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMaThu(string NewMaThu,int ThuTrongTuan_ID){
			ThuTrongTuanDAO dao = new ThuTrongTuanDAO();
			return dao.UpdateMaThu(NewMaThu,ThuTrongTuan_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: UpdateTenThu</para>
		/// <para>Input: NewTenThu,ThuTrongTuan_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateTenThu(string NewTenThu,int ThuTrongTuan_ID){
			ThuTrongTuanDAO dao = new ThuTrongTuanDAO();
			return dao.UpdateTenThu(NewTenThu,ThuTrongTuan_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: UpdateThuTu</para>
		/// <para>Input: NewThuTu,ThuTrongTuan_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateThuTu(int NewThuTu,int ThuTrongTuan_ID){
			ThuTrongTuanDAO dao = new ThuTrongTuanDAO();
			return dao.UpdateThuTu(NewThuTu,ThuTrongTuan_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: UpdateGhiChu</para>
		/// <para>Input: NewGhiChu,ThuTrongTuan_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateGhiChu(string NewGhiChu,int ThuTrongTuan_ID){
			ThuTrongTuanDAO dao = new ThuTrongTuanDAO();
			return dao.UpdateGhiChu(NewGhiChu,ThuTrongTuan_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: Delete</para>
		/// <para>Input: ThuTrongTuanEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(ThuTrongTuanEntity o){
			ThuTrongTuanDAO dao = new ThuTrongTuanDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: ThuTrongTuan_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int ThuTrongTuan_ID){
			ThuTrongTuanDAO dao = new ThuTrongTuanDAO();
			return dao.DeleteByID(ThuTrongTuan_ID);
		}
		#endregion

		#region Select,delete by ThuTrongTuan_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END ThuTrongTuanWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

